package com.aceitunaproject.clientinterface.eventadapters;
import java.util.List;

import com.aceitunaproject.shared.message.Message;
/**
 * Interface used to create collections of event handlers and trigger them
 * "Adapts" the given event handler to a single form to allow the interface to
 * trigger them without knowing the specific message type
 * 
 * @author Federico Bergstein
 * 
 */
public interface AceitunaEventAdapter {
	/**
	 * Triggers the event
	 * 
	 * @param message
	 *            the message received from the server with the event
	 */
	void trigger(Message message);

	List<Object> getHandlers();
}
